<template>
	<view class="scroll-bx">
		<scroll-view scroll-y="true" class="scroll-Y" :style="{'height': height + 'px'}" @scrolltolower="onScrollToLower">
			<slot>list</slot>
		</scroll-view>
	</view>
</template>

<script>
	export default {
		props: {
			height:{
				type:Number,
				default:0
			}
		},
		data(){
			return{
				
			}
		},
		methods: {
			onScrollToLower(){
				this.$emit('hitBottom')
			}
		}
	}
</script>

<style lang="scss">
	.scroll-bx{
		background-color:$uni-bg-color;
	}
</style>